package com.rongmai.db.mapper;

import com.rongmai.db.model.User;
import com.rongmai.db.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-09-20 22:51:01
* @Entity com.rongmai.db.model.User
*/
public interface UserMapper {

    int insert(User user);

    User getById(Integer id);

    List<User> getByMobile(String mobile);

    int update(User user);

    List<User> queryUser(UserVo userVo);

    List<User> pageUser(UserVo userVo);

    Integer countUser(UserVo userVo);

    User getByMobileAndRole(@Param("mobile") String mobile,@Param("role") String role);
}
